-- GENERATED SPELL FOR [Red Whelp] --


function spell0_1042(pUnit, Event) --@Flame Lash,n/a--
pUnit:FullCastSpellOnTarget(3356,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1042', 46000, 1)
end

function Sorts_1042(pUnit, Event)
local choix_sorts_1042 = math.random(0, 0)
if choix_sorts_1042 == 0 then
pUnit:RegisterEvent('spell0_1042', 1, 1)
end
end

function mob1042_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1042', math.random(1500, 3000), 1)
end

function mob1042_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1042_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1042_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1042, 1, 'mob1042_Action')
RegisterUnitEvent(1042, 2, 'mob1042_Leave')
RegisterUnitEvent(1042, 3, 'mob1042_Kill')
RegisterUnitEvent(1042, 4, 'mob1042_Die')
